using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.Sterilizationcenter.Domain.zmc
{
    /// <summary>
    /// 患者住院记录表
    /// </summary>
    [SugarTable("PatientAdmission")]
    public class PatientAdmission
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 患者ID
        /// </summary>
        public int PatientId { get; set; }

        /// <summary>
        /// 患者姓名
        /// </summary>
        [SugarColumn(Length = 50)]
        public string PatientName { get; set; }

        /// <summary>
        /// 患者性别（0:男, 1:女）
        /// </summary>
        public int Gender { get; set; }

        /// <summary>
        /// 患者年龄
        /// </summary>
        public int Age { get; set; }

        /// <summary>
        /// 病房ID
        /// </summary>
        public int WardId { get; set; }

        /// <summary>
        /// 病房编号
        /// </summary>
        [SugarColumn(Length = 50)]
        public string WardNo { get; set; }

        /// <summary>
        /// 床位ID
        /// </summary>
        public int BedId { get; set; }

        /// <summary>
        /// 床位编号
        /// </summary>
        [SugarColumn(Length = 50)]
        public string BedNo { get; set; }

        /// <summary>
        /// 入院时间
        /// </summary>
        public DateTime AdmissionTime { get; set; }

        /// <summary>
        /// 出院时间（如果已出院）
        /// </summary>
        public DateTime? DischargeTime { get; set; }

        /// <summary>
        /// 住院状态（0:在院, 1:出院, 2:转科）
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 主治医生ID
        /// </summary>
        public int DoctorId { get; set; }

        /// <summary>
        /// 主治医生姓名
        /// </summary>
        [SugarColumn(Length = 50)]
        public string DoctorName { get; set; }

        /// <summary>
        /// 诊断信息
        /// </summary>
        [SugarColumn(Length = 500)]
        public string Diagnosis { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
    }
}